home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Leser 15 / Amiga Plus Leser CD 15.iso / Tools / Development / MosaicSRC / libwww2 / HTML.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-03-13  |  1.2 KB  |  52 lines

  1. #ifndef HTML_H
  2. #define HTML_H
  3.  
  4. #include "HTUtils.h"
  5. #include "HTAnchor.h"
  6. #include "HTMLDTD.h"
  7.  
  8. #ifdef SHORT_NAMES
  9. #define HTMLPresentation        HTMLPren
  10. #endif
  11.  
  12. extern CONST HTStructuredClass HTMLPresentation;
  13.  
  14. extern HTStructured* HTML_new PARAMS((
  15.         HTParentAnchor * anchor,
  16.         HTFormat        format_out,
  17.         HTStream *      target));
  18.  
  19. /*      Names for selected internal representations:
  20. */
  21. typedef enum _HTMLCharacterSet {
  22.         HTML_ISO_LATIN1,
  23.         HTML_NEXT_CHARS,
  24.         HTML_PC_CP950
  25. } HTMLCharacterSet;
  26.  
  27. extern void HTMLUseCharacterSet PARAMS((HTMLCharacterSet i));
  28.  
  29. /*
  30.  
  31. Record error message as a hypertext object
  32.  
  33.    The error message should be marked as an error so that it can be
  34.    reloaded later. This implementation just throws up an error message
  35.    and leaves the document unloaded.
  36.    
  37.  */
  38. /* On entry,
  39. **      sink    is a stream to the output device if any
  40. **      number  is the HTTP error number
  41. **      message is the human readable message.
  42. ** On exit,
  43. **      a retrun code like HT_LOADED if object exists else 60; 0
  44. */
  45.  
  46. PUBLIC int HTLoadError PARAMS((
  47.         HTStream *      sink,
  48.         int             number,
  49.         CONST char *    message));
  50.  
  51. #endif
  52.